package com.aotain.common;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class DomainConfig {

	private String suffixName ;
	private String domainList;
	
	public DomainConfig(String config) {
		Properties prop = new Properties();
		try {
			InputStream in = new FileInputStream(config);
			prop.load(in);  
			suffixName = prop.getProperty("suffixname").trim();
			domainList = prop.getProperty("domainlist").trim();
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return;
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return;
		}
	}
	
	public String getDomainList() {
		return domainList;
	}
	
	public String getSuffixName(){
		return suffixName;
	}

}
